package com.ruoyi.project.task.mission.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Pathosis
 * @date 2020-09-17 10:11
 * @description: 任务表model
 */
@JsonIgnoreProperties(value = { "handler"})
public class TaskMission extends BaseEntity implements Serializable{
    /** 任务编号 */
    private Long missionId;

    /** 任务标题 */
    private String missionTitle;

    /** 任务内容*/
    private String missionText;

    /** 员工编号 */
    private Long infoId;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-ddTHH:mm:ss")
    private Date endTime;


    /** 任务状态 */
    private String status;

    /** 紧急程度 */
    private String urgencyLevel;

    /** 是否接收*/
    private String isReceive;

    /** 文件路径*/
    private String url;

    public String getIsReceive() {
        return isReceive;
    }

    public void setIsReceive(String isReceive) {
        this.isReceive = isReceive;
    }

    public TaskMission(Long missionId, String missionTitle, String missionText, Long infoId, Date endTime, String status, String urgencyLevel) {
        this.missionId = missionId;
        this.missionTitle = missionTitle;
        this.missionText = missionText;
        this.infoId = infoId;
        this.endTime = endTime;
        this.status = status;
        this.urgencyLevel = urgencyLevel;
    }

    public TaskMission() {
    }

    @Override
    public String toString() {
        return "TaskMission{" +
                "missionId=" + missionId +
                ", missionTitle='" + missionTitle + '\'' +
                ", missionText='" + missionText + '\'' +
                ", infoId=" + infoId +
                ", endTime=" + endTime +
                ", state='" + status + '\'' +
                ", urgencyLevel='" + urgencyLevel + '\'' +
                '}';
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Long getMissionId() {
        return missionId;
    }

    public void setMissionId(Long missionId) {
        this.missionId = missionId;
    }

    public String getMissionTitle() {
        return missionTitle;
    }

    public void setMissionTitle(String missionTitle) {
        this.missionTitle = missionTitle;
    }

    public String getMissionText() {
        return missionText;
    }

    public void setMissionText(String missionText) {
        this.missionText = missionText;
    }

    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUrgencyLevel() {
        return urgencyLevel;
    }

    public void setUrgencyLevel(String urgencyLevel) {
        this.urgencyLevel = urgencyLevel;
    }
}
